

import bpy
import nodeitems_utils
from bpy.types import Operator, Menu





class C_节点子菜单_数据拆分合并(Menu):
	bl_idname = 'node.menu_split_merge'
	bl_label = "数据拆分合并"

	def draw(self, context):
		layout = self.layout
		layout.operator('node.create_node_iaiid_flatten')
		layout.operator('node.create_node_iai_reorganization_iaii')






class C_节点子菜单_容器数据操作(Menu):
	bl_idname = "node.menu_container_data_operating"
	bl_label = "容器数据操作"
	
	def draw(self, context):
		layout = self.layout
		#layout.operator("node.global_node_scene_frame")
		layout.menu("node.menu_split_merge")
		layout.operator('node.global_node_copy_data', icon='COPYDOWN')
		layout.operator('node.global_node_merge_data', icon='LINKED')
		
		#读取写入
		layout.separator()
		layout.label(text="读取写入")
		layout.operator('node.global_node_get_element_num', icon='SHORTDISPLAY')
		layout.operator('node.global_node_get_element')
		layout.operator('node.node_get_adjacency_element', icon='SELECT_SUBTRACT')
		layout.operator('node.global_node_get_get_area_coord_index', text='取范围坐标索引')
		layout.operator('node.add_element', icon='ALIGN_MIDDLE')
		
		#修改
		layout.separator()
		layout.label(text="修改")
		layout.operator('node.create_node_container_data_offset')
		layout.operator('node.add_node_from_bool_remove_element')
		layout.operator('node.add_node_from_bool_remove_i32_a1_element')
		layout.operator('node.add_node_from_bool_remove_i32_a2_element')
		layout.operator('node.add_node_from_index_get_element')
		layout.operator('node.create_node_array_remove_enm')
		
		layout.operator('node.create_node_sort')
		layout.operator('node.create_node_shuffle')

		layout.separator()
		layout.operator('node.global_node_f32_1d_random_intermingle')



classes = (
	C_节点子菜单_数据拆分合并,

	C_节点子菜单_容器数据操作,
	
)

def register():
	for c in classes:
		bpy.utils.register_class(c)

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)

	



